import Vue from 'vue'
let Common = {
    isPassword(password) {
        var patrn = /^(\w){6,20}$/
        if (!patrn.exec(password)) return false
        return true
    },
    isMobilePhone(phone) {
        var myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/
        if (!myreg.test(phone)) {
            return false
        } else {
            return true
        }
    },
}
Vue.prototype.$fn = Common